package ace.cmp.security.oauth2.authz.server.test.core.properties;

import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author caspar
 * @date 2023/3/24 11:13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = Oauth2ServerTestProperties.CONFIG_PREFIX)
public class Oauth2ServerTestProperties {
  public static final String CONFIG_PREFIX = "ace.security.oauth2.authorization.test";
  @Builder.Default private Boolean enable = false;

  /**
   * 模拟token 结果
   */
  private Map<String, Object> mockToken;

  /**
   * 模拟 introspect 结果
   */
  private Map<String, Object> mockIntrospect;
}
